﻿using System;
using System.Data;

namespace Shopping.Entities
{
    /// -----------------------------------------------------------------------------
    ///<summary>
    /// The Info class for the CategoriesInfo
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public class CategoriesInfo
    {
        #region Private Members
		
        private string _alia="";
        private string _categoryName="";
        private string _parent="";
        private string _description="";
        private string _updateBy="";
        #endregion
        #region Constructors
        // initialization

        #endregion
        #region Public Properties
        /// <summary>
        /// Get and Set Property Data of File column Alias in Table Categories 
        /// </summary>
				
        public string Alia
        {
            get{ return _alia; }
            set{ _alia = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column CategoryName in Table Categories 
        /// </summary>
				
        public string CategoryName
        {
            get{ return _categoryName; }
            set{ _categoryName = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column Parent in Table Categories 
        /// </summary>
				
        public string Parent
        {
            get{ return _parent; }
            set{ _parent = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column Description in Table Categories 
        /// </summary>
				
        public string Description
        {
            get{ return _description; }
            set{ _description = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column UpdateBy in Table Categories 
        /// </summary>
				
        public string UpdateBy
        {
            get{ return _updateBy; }
            set{ _updateBy = value; }
        }
				
        #endregion		
		
        #region IHydratable Implementation

        /// <summary>
        /// 
        /// </summary>        
        public void Fill(IDataReader oReader)
        {
            _alia=Convert.ToString(oReader["Alia"]);
            _categoryName=Convert.ToString(oReader["CategoryName"]);
            _parent=Convert.ToString(oReader["Parent"]);
            _description=Convert.ToString(oReader["Description"]);
            _updateBy=Convert.ToString(oReader["UpdateBy"]);
        }
        #endregion
    }
}